<!-- Begin hrmd/staff_team.tpl -->
<form method="post" action="?module=hrmd&action=staff_team&submit=true">
{opentable}
{titlebar colspan=2 title=$lg->staffing}	
<tr>{$perio}</tr>
<tr>{$team}</tr>
<tr>{$idusr}</tr>
{closetable}
<input type="submit" name="submit" class="button" align="left" value={$lg->OK} />
</form>

<br><br>
{opentable}
	<tr class="sectiontableheader" align="center">
		<td width = "15%">{$lg->user}</td>
		<td width = "15%">{$lg->task}</td>
		<td width = "15%">{$lg->tcost}</td>		
	</tr>
	{if is_array($t_edit)}
	{foreach from=$t_edit key=userid item=t_staff}
		<tr class="sectiontableentry2" align="left" >
			<td >{username id=$userid}</td>
			<td align="center"><b>{$lg->staffing}</b></td>
		    <td align="center"><b>{$t_staff.ratio|string_format:"%.2f"}</b></td>
		</tr>
		{foreach from=$t_staff key=keynm item=s_staff}
			{if is_array($s_staff.detail)}
			{foreach from=$s_staff.detail key=ttask item=value}
			<tr class="sectiontableentry1" align="center">
			<td></td>
			<td>{$ttask}</td>
			<td>{fcost value=$value}</td>
			</tr>
			{/foreach}
			<tr class="sectiontableentry1" align="center">
				<td></td>
				<td><b>{$lg->total} {$keynm}</b></td>
				<td><b>{fcost value=$s_staff.value}</b></td>
			</tr>
			{/if}
		{/foreach}
	{/foreach}
	{else}
		<tr class="data"><td colspan="6">{$lg->no_data}</td></tr>	
	{/if}
{closetable}
<!-- End hrmd/staff_team.tpl -->